<template>
    <div>
        <div ref="box">{{ $route.meta.title }}</div>
        <button @click="changeUser">changeUser</button>
        <v-child ref="child"></v-child>
    </div>
</template>
<script>
import vChild from './Children.vue';
export default {
    components: {
        vChild
    },
    data() {
        return {
        }
    },
    methods: {
        changeUser() {
            this.$refs.child.user.name = 'lisi';
            console.log(this.$refs.child);
            this.$refs.child.log111();
        }
    },
    mounted() {
        console.log(this.$refs.box);
        console.log(this.$refs.child);
    }
}
</script>
<style></style>